export const loginWindowOptions = {
  windowName: 'loginWindow',
  pageRouter: 'login',
  // parent: 'mainWindow',
  windowCfg: {
    width: 400,
    height: 500,
    transparent: false,
    thickFrame: true,
    resize: false,
    autoHideMenuBar: true,
    frame: true,
    title: '登录',
    webPreferences: {
      contextIsolation: false,
      webSecurity: false,
      allowRunningInsecureContent: false,
      nativeWindowOpen: true,
      devTools: true,
      webgl: true,
      nodeIntegration: false,
      enableRemoteModule: true,
      zoomFactor: 1
    }
  }
}

export function mainWindowOptions() {
  return {
    windowName: 'mainWindow',
    pageRouter: '/',
    windowCfg: {
      height: 660,
      useContentSize: true,
      width: 1130,
      show: true,
      title: '项目管理',
      autoHideMenuBar: true,
      webPreferences: {
        contextIsolation: false,
        webSecurity: false, // 禁用同源策略
        allowRunningInsecureContent: false
      }
    }
  }
}
